package com.duruikang.LeaveAPI.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duruikang.LeaveAPI.entity.Leaving;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author szh
 */
public interface LeavingService extends IService<Leaving> {

    /**
     * 生成请假单并保存
     */
    public boolean submitLeaving(String studentId, int leavingReason, int leavingType,
                                 String leavingDestination, String leavingDetail,
                                 LocalDate leavingStart, LocalDate leavingEnd);
    /**
     * 获得所有请假单
     */
    public List<Map<String ,String>> getAllLeavings(String accountId);

    public Map<String,String> getLeaving(String leavingId);

    public List<Map<String,String>> getExaminingLeavings(String accountId);

}
